<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html >
<html>
<head>
<script type="text/javascript">
</script>
</head>
<c:if test="${code==1}">
	<script type="text/javascript">
		
	</script>
	<body>
		<div id="searchOrders_div_interval"></div>

		<div id="outside_div">


			<form id="pagerForm" method="post"
				action="userRecordRorOrder?toResult=searchUserCount&rightId=${rightId}">
				<input type="hidden" name="pageNum" value="${page.currentPage }" />
				<input type="hidden" name="pageSize" value="${page.pageSize }" />
				<input type="hidden" class="date" name="startTime" value="${startTime}"/>
				<input type="hidden" class="date" name="endTime" value="${endTime}"/>
				<input type="hidden"  name="orderCount" value="${orderCount}"/>
			</form>

			<form id="searchOrders_search" onsubmit="return navTabSearch(this);"
				action="userRecordRorOrder?toResult=searchUserCount&rightId=${rightId}"
				method="post">
				<div class="pageHeader">
					<input type="hidden" name="init" value=0>
					<div class="searchBar">
						<table class="searchContent">
							<tr>
								<td>
								下单数量>=
								<input  onkeyup="value=value.replace(/[^\d.]/g,'')" type="text" name="orderCount" min="1" value="${orderCount}">
								</td>
								<td>开始日期：</td>
								<td><input type="text" class="date"  name="startTime" value="${startTime}"/></td>
								<td>结束日期：</td>
								<td><input type="text" class="date" name="endTime" value="${endTime}"/></td>								

								<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
								<td>
																							
									<div class="buttonActive">
										<div class="buttonContent">
											<button type="submit">检索</button>
										</div>
									</div>
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="pageContent">
					<div class="panelBar">
						<ul class="toolBar">
						</ul>
					</div>
					<table id="companyOrders" class="list" width="100%" layoutH="138">
						<thead>
							<tr>
								<th align="center">序号</th>
								<th align="center">用户名</th>
								<th align="center">下单次数</th>

								<!-- <th align="center">备注</th> -->
							</tr>
						</thead>
						<tbody>
							<s:iterator var="countOrderUser" value="page.data" status="st">
								<tr target="sid_support" rel="<s:property value="searchRecord.id" />">
									<th width="1%" align="center"><s:property
											value="page.pageSize * (page.currentPage-1) + #st.index + 1" /></th>
									<th width="8%" align="left"><s:property
											value="#countOrderUser.username" /></th>	
									<th width="8%" align="left"><s:property
											value="#countOrderUser.countUser" /> 			
									
								</tr>
							</s:iterator>
						</tbody>
					</table>
					<div class="panelBar">
						<div class="pages">
							<span>共${page.totalNum }条，共${page.totalPage }页</span>
						</div>
						<div class="pagination" targetType="navTab"
							totalCount="${page.totalNum }" numPerPage="${page.pageSize }"
							pageNumShown="10" currentPage="${page.currentPage }"></div>
					
					</div>
						<div>
							<span>查询时间段内，下单次数>=${orderCount}的用户数为${page.totalNum }</span>
						</div>
				</div>
			</form>


		</div>
	</body>
</c:if>
<c:if test="${code==0}">
${message}
</c:if>
</html>